import request from '@/utils/request'

// 查询告警列表
export function listMineOperation(query) {
  return request({
    url: '/general/mineOperation/list',
    method: 'get',
    params: query
  })
}

// 查询告警详细
export function getMineOperation(alarmId) {
  return request({
    url: '/general/mineOperation/' + alarmId,
    method: 'get'
  })
}

// 新增告警
export function addMineOperation(data) {
  return request({
    url: '/general/mineOperation',
    method: 'post',
    data: data
  })
}

// 修改告警
export function updateMineOperation(data) {
  return request({
    url: '/general/mineOperation',
    method: 'put',
    data: data
  })
}

// 删除告警
export function delMineOperation(alarmId) {
  return request({
    url: '/general/mineOperation/' + alarmId,
    method: 'delete'
  })
}
